<?php
/**
 * Group db table gateway
 * @version
 * @author duongthienduc
 **/

class Bet_Model_DbTable_UserGroup extends Bet_Db_Table {

	// fields
	protected $_name = 'user_group';

	// associations
	protected $_referenceMap    = array(
        'user' => array(                                     
            'columns'           => array('user_id'),
			'refTableClass'     => 'Bet_Model_DbTable_User', 
            'refColumns'        => array('user_id')
		),
        'group' => array(                                      
            'columns'           => array('group_id'), 
            'refTableClass'     => 'Bet_Model_DbTable_Group', 
            'refColumns'        => array('group_id') 
		)
	);

}
?>